<template>

  <el-dialog v-model="dialogFormVisible" title="审核结果" :before-close="handleConfirmAuditResult"  >
    <el-form :model="formAuditResultContent">
      <el-form-item label="审核综述" :label-width="formLabelWidth">
        <el-input v-model="formAuditResultContent.auditResultContent" :autosize="{ minRows: 2, maxRows: 4 }" type="textarea"
          placeholder="请输入" />
      </el-form-item>

    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="handleClose()">取消</el-button>
        <el-button type="primary" @click="handleConfirm()">
          提交
        </el-button>
      </span>
    </template>
  </el-dialog>
</template>

<script lang="ts" setup>
import { reactive, ref,onBeforeMount } from 'vue'

import { ElMessageBox } from 'element-plus'
const formLabelWidth = '140px'
const props = defineProps(["closeAuditResultForm","formAuditResultContent","dialogFormVisible","handleConfirmAuditResult","confirmAuditResult"])


const handleConfirm=()=>{
  props.confirmAuditResult()
}
const handleClose=()=>{

  props.closeAuditResultForm()
}

onBeforeMount(()=>{
  console.log(props.dialogFormVisible);
  
})
</script>
<style scoped>
.el-button--text {
  margin-right: 15px;
}

.el-select {
  width: 300px;
}

.el-input {
  width: 300px;
}

.dialog-footer button:first-child {
  margin-right: 10px;
}
</style>
